import {Routes} from 'Shared/utils/routeManager';
import {formatMessage} from './intl';
const routes = new Routes({
    query: {
        url: '/',
        title: formatMessage({
            id: 'routes.column.operation.query',
            defaultMessage: '查询'
        })
    },
    detail: {
        url: '/:id/detail',
        title: formatMessage({
            id: 'routes.column.operation.detail',
            defaultMessage: '详情'
        }),
        format: '/{0}/detail'
    },
    add: {
        url: '/add',
        title: formatMessage({
            id: 'routes.operation.add',
            defaultMessage: '新增'
        }),
        format: '/update'
    },
    update: {
        url: '/:id/update',
        title: formatMessage({
            id: 'routes.operation.update',
            defaultMessage: '编辑'
        }),
        format: '/{0}/update'
    },
    signfor: {
        url: '/:id/signfor',
        title: formatMessage({
            id: 'routes.operation.signfor',
            defaultMessage: '签收'
        }),
        format: '/{0}/signfor'
    },
    signinStatistics: {
        url: '/signinStatistics',
        title: formatMessage({
            id: 'routes.operation.signinStatistics',
            defaultMessage: '签收回复统计'
        }),
        format: '/signinStatistics'
    },
    noticeProgram: {
        url: '/noticeProgram',
        title: formatMessage({
            id: 'routes.operation.noticeProgram',
            defaultMessage: '栏目管理'
        }),
        format: '/noticeProgram'
    },
    noticeProgramAdd: {
        url: '/noticeProgramAdd',
        title: formatMessage({
            id: 'routes.operation.noticeProgramAdd',
            defaultMessage: '栏目管理新增'
        }),
        format: '/noticeProgramUpdate'
    },
    noticeProgramUpdate: {
        url: '/:id/noticeProgramUpdate',
        title: formatMessage({
            id: 'routes.operation.noticeProgramUpdate',
            defaultMessage: '栏目管理编辑'
        }),
        format: '/{0}/noticeProgramUpdate'
    },
});

export default routes;
